import java.util.Scanner;
public class third {

    public static void main(String[] args) {
        System.out.println("请输入初始数据:");
        Scanner scanner = new Scanner(System.in);
        Scanner scanner1 = new Scanner(System.in);
        int arr[] = {1, 2, 3, 4};
        int data = scanner.nextInt();
        int data1 = scanner1.nextInt();
        System.out.println("请输入操作:" + "请输入1到4");
        Scanner scanner2 = new Scanner(System.in);
        int data2 = scanner1.nextInt();

        switch (data2)
        {
            case 1:
                float c= data + data1;
                System.out.println("运算结果为:");
                System.out.print(c);
                        break;
            case 2:
                float b= data - data1;
                System.out.println("运算结果为:");
                System.out.print(b);
                break;
            case 3:
                float v= data % data1;
                System.out.println("运算结果为:");
                System.out.print(v);
                break;
            case 4:
                float n= data * data1;
                System.out.println("运算结果为:");
                System.out.print(n);
                break;

        }





        //data = data + 1;


    }
}
